<include file='Public:header_activity'/> 

  <!-- Start: Content -->
  <section id="content">
    <div id="topbar" class="affix">
      <ol class="breadcrumb">
       <li style="font-size:1.3em"><a href="<?php echo '__ROOT__/index' ?>"><span>返回首页</span></a></li>
        <li style="font-size:1.3em"><a href="javascript:void(0)" onclick="history.go(-1)" class="back"><span>返回上一层</span></a></li>
        <li style="font-size:1.3em"><a href="<?php echo '__ROOT__/activityTwo' ?>" class="back"><span>活动二</span></a></li>
      </ol>
    </div>
    <div class="container">
        <div class="panel" style="padding: 50px;width: 1000px">
            <form role="form" action="__ROOT__/activityTwo" method="post">
                <div class="form-group">
                  <label for="name">活动标题</label>
                  <input type="text" class="form-control" placeholder="文本输入" style="width: 800px;" name="title" 
                  value="<?php echo $list['title']; ?>">
                </div>
                <div class="form-group" style="margin-top: 30px;">
                  <label for="name">活动正文</label>  <span style="float: right;margin-right: 100px;">你可以输入<span style="color: #31B444">500</span>个字，现在剩余<span id="word" style="color: #C02525">500</span>个</span>
                  <textarea class="form-control" rows="8" style="width: 800px;" name="comment" id="weibo"><?php echo $list['comment']; ?></textarea>
                  <script type="text/javascript">
                   $(function(){
                    $("#weibo").keyup(function(){
                     var len = $(this).val().length;
                     if(len > 499){
                      $(this).val($(this).val().substring(0,500));
                     }
                     var num = 500 - len;
                     $("#word").text(num);
                    });
                   });
                  </script>
                </div>
                <h2><?php if($list['is_show'] ==0){echo "<span style='color: #632A2A'>未显示</span>";}else{echo "<span style='color: #2A336D'>已显示</span>";}?></h2>
                <div class="checkbox" style="float: left;margin: 20px 50px 0 550px;position: relative;top: 10px;left: 20px;">
                  <label>
                    <input type="checkbox" value="1" name="is_show" ><span>是否显示</span>
                  </label>
                </div>
                <!-- <button type="submit" class="btn btn-default">修改</button> -->
                <div class=""><input type="submit" value="修改" class="btn btn-default" style="width: 125px;margin-top: 15px"></div>
            </form>
        </div>
    </div>
  </section>
 
  <!-- End: Content --> 
<include file='Public:footer'/> 